/*
 * Created by SharpDevelop.
 * User: narmi79
 * Date: 7/19/2007
 * Time: 11:28 AM
 */

using System;
using System.Collections.Generic;

namespace Geotag
{
	/// <summary>
	/// MapLayer describes a layer to be drawn on the MapCanvas.
	/// </summary>
	public class MapLayer
	{
		private bool visible;
		private ShapefileInfo Info;
		private LinkedList<Shape> ListOfShapes;
		
		public MapLayer()
		{
			visible = false;
			Info = null;
			ListOfShapes = new LinkedList<Shape>();
		}
		
		public void ReadShapefile(string shapefile)
		{
			ShapefileReader shpReader = new ShapefileReader(shapefile, ListOfShapes);
			Info = shpReader.ShapefileInfo;
			shpReader = null;
			GC.Collect();
		}
		
		public bool Visible
		{
			get {
				return visible;
			}
			set {
				visible = value;
			}
		}
		
		public void Draw()
		{
			// TODO: Add Draw() code here
		}
	}
}
